/**
 * Response
 */
function Response(){
	
}
Response.render = function render(app,res,page,data){ 
	data.server=app.envConfig.server;
	res.render(page,data);
};
Response.redirect =  function redirect(app,res,url){ 
	return res.redirect(url);
};
Response.jsonsuccess=function(app,res,data){
	data.status="success";
	res.json(200,data);
};
Response.jsonerror=function(app,res,data){
	data.status="error";
	res.json(200,data);
};
module.exports = Response;